<!DOCTYPE HTML>
<html lang="en" >
    <!-- Start book 项目实训课程讲义 -->
    <head>
        <!-- head:start -->
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>修改密码 | 项目实训课程讲义</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        <meta name="author" content="BigCat">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-splitter/splitter.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../data/user/user_info.html" />
    
    
    <link rel="prev" href="../data/forget_pwd.html" />
    

        <!-- head:end -->
    </head>
    <body>
        <!-- body:start -->
        
    <div class="book"
        data-level="8"
        data-chapter-title="修改密码"
        data-filepath="data/change_pwd.md"
        data-basepath=".."
        data-revision="Fri Apr 26 2019 21:51:37 GMT+0800 (CST)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        博学谷在线
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="data/form/index.html">
            
                
                    <a href="../data/form/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        Django表单系统
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="data/form/form_define.html">
            
                
                    <a href="../data/form/form_define.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        表单的定义
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="data/form/form.html">
            
                
                    <a href="../data/form/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        表单的渲染
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="data/form/form_valid.html">
            
                
                    <a href="../data/form/form_valid.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        表单数据的验证
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="data/form/Captcha.html">
            
                
                    <a href="../data/form/Captcha.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        验证码模块
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="data/path.html">
            
                
                    <a href="../data/path.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        环境搭建
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3" data-path="data/data.html">
            
                
                    <a href="../data/data.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        数据录入
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4" data-path="data/index.html">
            
                
                    <a href="../data/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        首页
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5" data-path="data/register.html">
            
                
                    <a href="../data/register.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        用户注册
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6" data-path="data/login.html">
            
                
                    <a href="../data/login.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.</b>
                        
                        用户登录
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7" data-path="data/forget_pwd.html">
            
                
                    <a href="../data/forget_pwd.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.</b>
                        
                        忘记密码
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="8" data-path="data/change_pwd.html">
            
                
                    <a href="../data/change_pwd.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.</b>
                        
                        修改密码
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="9" data-path="data/user/user_info.html">
            
                
                    <a href="../data/user/user_info.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.</b>
                        
                        用户中心
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="9.1" data-path="data/user/user_class.html">
            
                
                    <a href="../data/user/user_class.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.1.</b>
                        
                        我的课程
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="9.2" data-path="data/user/user_collect.html">
            
                
                    <a href="../data/user/user_collect.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.2.</b>
                        
                        我的收藏
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="9.3" data-path="data/user/user_msg.html">
            
                
                    <a href="../data/user/user_msg.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.3.</b>
                        
                        我的消息
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >项目实训课程讲义</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h2 id="&#x4FEE;&#x6539;&#x5BC6;&#x7801;">&#x4FEE;&#x6539;&#x5BC6;&#x7801;</h2>
<p>&#x7528;&#x6237;&#x70B9;&#x51FB;&#x90AE;&#x7BB1;&#x9A8C;&#x8BC1;&#x94FE;&#x63A5;&#xFF0C;&#x540E;&#x7AEF;&#x9700;&#x8981;&#x5BF9;&#x9A8C;&#x8BC1;&#x94FE;&#x63A5;&#x4E2D;&#x7684;&#x52A0;&#x5BC6;&#x7684;&#x7528;&#x6237;&#x6570;&#x636E;&#x9A8C;&#x8BC1;&#xFF0C;&#x9A8C;&#x8BC1;&#x6210;&#x529F;&#x5219;&#x8FD4;&#x56DE;&#x4FEE;&#x6539;&#x5BC6;&#x7801;&#x9875;&#x9762;</p>
<p><img src="../src/change_pwd.png" alt="change_pwd"></p>
<h3 id="1&#x3001;&#x83B7;&#x53D6;&#x4FEE;&#x6539;&#x5BC6;&#x7801;&#x9875;&#x9762;">1&#x3001;&#x83B7;&#x53D6;&#x4FEE;&#x6539;&#x5BC6;&#x7801;&#x9875;&#x9762;</h3>
<p>&#x8BF7;&#x6C42;&#x65B9;&#x5F0F;&#xFF1A;GET</p>
<p>&#x8BF7;&#x6C42;&#x8DEF;&#x5F84;&#xFF1A; reset/alksjdiwokalsdjo</p>
<pre><code class="lang-python">url(<span class="hljs-string">r&apos;^reset/(?P&lt;active_code&gt;.*)/$&apos;</span>, ResetView.as_view(), name=<span class="hljs-string">&apos;reset_pwd&apos;</span>),
</code></pre>
<p>&#x8BF7;&#x6C42;&#x53C2;&#x6570;&#xFF1A; &#x7528;&#x6237;&#x52A0;&#x5BC6;&#x7684;active_code&#x503C;</p>
<p>&#x8FD4;&#x56DE;&#x7ED3;&#x679C;&#xFF1A;</p>
<p>&#x9A8C;&#x8BC1;&#x6210;&#x529F;&#xFF1A;</p>
<pre><code class="lang-python"><span class="hljs-keyword">return</span> render(request, <span class="hljs-string">&apos;password_reset.html&apos;</span>, {<span class="hljs-string">&apos;email&apos;</span>: email})
</code></pre>
<p>&#x9A8C;&#x8BC1;&#x5931;&#x8D25;&#xFF1A;</p>
<pre><code class="lang-python"><span class="hljs-keyword">return</span> render(request, <span class="hljs-string">&apos;active_fail.html&apos;</span>)
</code></pre>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../data/forget_pwd.html" class="navigation navigation-prev " aria-label="Previous page: 忘记密码"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../data/user/user_info.html" class="navigation navigation-next " aria-label="Next page: 用户中心"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-splitter/splitter.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"disqus":{"shortName":"gitbookuse"},"github":{"url":"https://github.com/dododream"},"search-pro":{"cutWordLib":"nodejieba","defineWord":["gitbook-use"]},"sharing":{"weibo":true,"facebook":true,"twitter":true,"google":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"tbfed-pagefooter":{"copyright":"Copyright © ITCast","modify_label":"「Revision Time:","modify_format":"YYYY-MM-DD HH:mm:ss」"},"baidu":{"token":"ff100361cdce95dd4c8fb96b4009f7bc"},"sitemap":{"hostname":"http://www.treenewbee.top"},"donate":{"wechat":"http://weixin.png","alipay":"http://alipay.png","title":"","button":"赏","alipayText":"支付宝打赏","wechatText":"微信打赏"},"edit-link":{"base":"https://github.com/dododream/edit","label":"Edit This Page"},"splitter":{},"toggle-chapters":{},"highlight":{},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        <!-- body:end -->
    </body>
    <!-- End of book 项目实训课程讲义 -->
</html>
